/**
 * 
 */
package kr.co.insoft.core.service.template.application;

import java.util.List;

import kr.co.insoft.core.model.paging.PagingModel;
import kr.co.insoft.core.model.template.application.ApplicationEntityModel;
import kr.co.insoft.core.model.template.application.ApplicationTypeEntityModel;
import kr.co.insoft.framework.exceptions.ServiceException;

import org.springframework.transaction.annotation.Transactional;

/**
 * @author IN-SOFT Inc. Park Jong Taek(jtpark@in-soft.co.kr)
 * 
 */
public interface ApplicationService {
	
	/**
	 * Application Paging 목록
	 * 
	 * @return
	 * @throws ServiceException
	 */
	public PagingModel getPagingList(PagingModel pagingModel)
			throws ServiceException;
	
	/**
	 * Application Name 중복 체크
	 * 
	 * @throws ServiceException
	 */
	public boolean isExistApplicationName(ApplicationEntityModel applicationEntityModel)
			throws ServiceException;

	/**
	 * Application Type 목록
	 * 
	 * @return
	 * @throws ServiceException
	 */
	public List<ApplicationTypeEntityModel> getTypeList()
			throws ServiceException;
	
	/**
	 * Application 등록
	 * 
	 * @param variableEntityModel
	 */
	@Transactional(rollbackFor = ServiceException.class)
	public void createApplication(ApplicationEntityModel applicationEntityModel)
			throws ServiceException;
	
	/**
	 * Application 조회
	 * 
	 * @return
	 * @throws ServiceException
	 */
	public ApplicationEntityModel getApplication(String applicationId)
			throws ServiceException;
	
	/**
	 * Application 삭제
	 * 
	 * @param applicationId
	 * @return
	 * @throws ServiceException
	 */
	public void doRemoveApplication(String applicationId)
			throws ServiceException;
	
}
